<?php require "function.php"; ?>
<html>
<body>
<?php
  $id=$_GET["id"];
//  $id='5360452';           
  $paths=getPath($id);
//  var_dump($paths);


  if(!empty($paths)){
    echo "<table width=80% align=center border=1><tr><td>日期</td><td>器官</td><td>組織診斷</td></tr>";
    foreach($paths as $i=>$onepath){
        foreach($onepath as $row){
            if(is_array($row)){
                echo "<tr><td>".ConvDate($paths[$i]['SpecimenGetDate'],'/')."</td><td>".$row['organ']."</td><td>".$row['diagnosis']."</td></tr>";}
        }
    }
    echo "</table>";
  }else echo "無病理報告";
  
?>
</body>
</html>
